package com.sgd.cli.pattern;

/**
 * <p>Title: 设备（相当于被遥控的设备）</p>
 * <p>Description: </p>
 *
 * @author su.gd
 * @date 2023-11-22
 */
public class Device {
    private String name;

    public Device(String name) {
        this.name = name;
    }

    public void turnOn() {
        System.out.println(name + "设备打开");
    }

    public void turnOff() {
        System.out.println(name + "设备关闭");
    }
}
